<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/Thirdparty/DBoW2/DBoW2/FClass.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_f_class_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">FClass.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_f_class_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef __D_T_FCLASS__</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define __D_T_FCLASS__</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;opencv2/core/core.hpp&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_d_bo_w2.html">DBoW2</a> {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_d_bo_w2_1_1_f_class.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_d_bo_w2_1_1_f_class.html">FClass</a></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_d_bo_w2_1_1_f_class.html#a9c94e662003f61413fd542d67b45c3a9">   27</a></span>&#160;  <span class="keyword">class </span>TDescriptor;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">const</span> TDescriptor *<a class="code" href="class_d_bo_w2_1_1_f_class.html#a9c94e662003f61413fd542d67b45c3a9">pDescriptor</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  </div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_d_bo_w2_1_1_f_class.html#a2f5859fa3acdf4f2a8a64d7e09de54ab">meanValue</a>(<span class="keyword">const</span> std::vector&lt;pDescriptor&gt; &amp;descriptors, </div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    TDescriptor &amp;mean) = 0;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  </div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="class_d_bo_w2_1_1_f_class.html#a56d4737dd67258389c808dbd10befa8c">distance</a>(<span class="keyword">const</span> TDescriptor &amp;a, <span class="keyword">const</span> TDescriptor &amp;b);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keyword">static</span> std::string <a class="code" href="class_d_bo_w2_1_1_f_class.html#aeb2561d74f7d9057c0887c12350f00c2">toString</a>(<span class="keyword">const</span> TDescriptor &amp;a);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_d_bo_w2_1_1_f_class.html#a0f27985bf4c13f0a6c12ebc4822c1217">fromString</a>(TDescriptor &amp;a, <span class="keyword">const</span> std::string &amp;s);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_d_bo_w2_1_1_f_class.html#a28a6ac7c718818f7a068a4aaae3e3b45">toMat32F</a>(<span class="keyword">const</span> std::vector&lt;TDescriptor&gt; &amp;descriptors, </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    cv::Mat &amp;mat);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;} <span class="comment">// namespace DBoW2</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_d_bo_w2_1_1_f_class_html_a28a6ac7c718818f7a068a4aaae3e3b45"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#a28a6ac7c718818f7a068a4aaae3e3b45">DBoW2::FClass::toMat32F</a></div><div class="ttdeci">static void toMat32F(const std::vector&lt; TDescriptor &gt; &amp;descriptors, cv::Mat &amp;mat)</div><div class="ttdoc">Returns a mat with the descriptors in float format. </div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html">DBoW2::FClass</a></div><div class="ttdoc">Generic class to encapsulate functions to manage descriptors. </div><div class="ttdef"><b>Definition:</b> FClass.h:25</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html_a2f5859fa3acdf4f2a8a64d7e09de54ab"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#a2f5859fa3acdf4f2a8a64d7e09de54ab">DBoW2::FClass::meanValue</a></div><div class="ttdeci">virtual void meanValue(const std::vector&lt; pDescriptor &gt; &amp;descriptors, TDescriptor &amp;mean)=0</div><div class="ttdoc">Calculates the mean value of a set of descriptors. </div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html_a9c94e662003f61413fd542d67b45c3a9"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#a9c94e662003f61413fd542d67b45c3a9">DBoW2::FClass::pDescriptor</a></div><div class="ttdeci">const TDescriptor * pDescriptor</div><div class="ttdef"><b>Definition:</b> FClass.h:27</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html_aeb2561d74f7d9057c0887c12350f00c2"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#aeb2561d74f7d9057c0887c12350f00c2">DBoW2::FClass::toString</a></div><div class="ttdeci">static std::string toString(const TDescriptor &amp;a)</div><div class="ttdoc">Returns a string version of the descriptor. </div></div>
<div class="ttc" id="namespace_d_bo_w2_html"><div class="ttname"><a href="namespace_d_bo_w2.html">DBoW2</a></div><div class="ttdoc">File: BowVector.cpp Date: March 2011 Author: Dorian Galvez-Lopez Description: bag of words vector Lic...</div><div class="ttdef"><b>Definition:</b> BowVector.cpp:18</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html_a56d4737dd67258389c808dbd10befa8c"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#a56d4737dd67258389c808dbd10befa8c">DBoW2::FClass::distance</a></div><div class="ttdeci">static double distance(const TDescriptor &amp;a, const TDescriptor &amp;b)</div><div class="ttdoc">Calculates the distance between two descriptors. </div></div>
<div class="ttc" id="class_d_bo_w2_1_1_f_class_html_a0f27985bf4c13f0a6c12ebc4822c1217"><div class="ttname"><a href="class_d_bo_w2_1_1_f_class.html#a0f27985bf4c13f0a6c12ebc4822c1217">DBoW2::FClass::fromString</a></div><div class="ttdeci">static void fromString(TDescriptor &amp;a, const std::string &amp;s)</div><div class="ttdoc">Returns a descriptor from a string. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_08235c883c2d11e586a63e6645937db5.html">Thirdparty</a></li><li class="navelem"><a class="el" href="dir_d1a1b6b9a428c17d660585cf3877a970.html">DBoW2</a></li><li class="navelem"><a class="el" href="dir_004f071c35dfaac2458bd63a15bbc95f.html">DBoW2</a></li><li class="navelem"><a class="el" href="_f_class_8h.html">FClass.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
